/*
 * @Author: leechoy 1419352779@qq.com
 * @Date: 2025-02-08 01:15:39
 * @LastEditors: leechoy 1419352779@qq.com
 * @LastEditTime: 2025-02-08 01:25:58
 * @FilePath: /server/router/api/index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

const index = require("./test.js");
const specs = require('./../middleware/swagger.js');
const swaggerUi = require('swagger-ui-express');
function addRoute(app) {
    app.use('/api/', index);
    app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(specs));
    // 将未知的页面请求重定向到首页
}
module.exports = addRoute;